<template>
  <!-- 清算账户余额警戒值通知报文查询明细页面弹出框-->
  <el-dialog
    title="清算账户余额警戒值通知报文查询明细"
    center
    :visible.sync="open"
    width="1024px"
    :close-on-click-modal="true"
    @close="closeFn"
  >
    <el-form ref="detailsForm" :model="formData" label-width="135px" :disabled="true">
      <el-row>
        <el-col :span="12">
          <el-form-item label="交易流水号：" prop="id">
            <el-input v-model="formData.id" placeholder="交易流水号" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="报文标识号：" prop="pkgId">
            <el-input v-model="formData.pkgId" placeholder="报文标识号" />
          </el-form-item>
        </el-col>
      </el-row>

      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="工作日期：" prop="workDate">
            <el-date-picker
              v-model="formData.workDate"
              type="date"
              value-format="yyyyMMdd"
              placeholder="选择日期"
              style="width: 100%"
            ></el-date-picker>
          </el-form-item>
        </el-col>
        <el-col :span="12"></el-col>
      </el-row>

      <el-row>
        <el-col :span="12">
          <el-form-item label="发起参与机构号：" prop="directSender">
            <el-input v-model="formData.directSender" placeholder="发起参与机构号" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="发起参与机构名称：" prop="senderName">
            <el-input v-model="formData.senderName" placeholder="发起参与机构名称" />
          </el-form-item>
        </el-col>
      </el-row>

      <el-row>
        <el-col :span="12">
          <el-form-item label="接收参与机构号：" prop="directReciver">
            <el-input v-model="formData.directReciver" placeholder="接收参与机构号" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="接收参与机构名称：" prop="reciverName">
            <el-input v-model="formData.reciverName" placeholder="接收参与机构名称" />
          </el-form-item>
        </el-col>
      </el-row>

      <el-row>
        <el-col :span="12">
          <el-form-item label="被监视清算行行号：" prop="setStBrno">
            <el-input v-model="formData.setStBrno" placeholder="被监视清算行行号" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="被监视清算行名称：" prop="stBrName">
            <el-input v-model="formData.stBrName" placeholder="被监视清算行名称" />
          </el-form-item>
        </el-col>
      </el-row>

      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="预警通知类型：" prop="warnType">
            <el-select v-model="formData.warnType" placeholder="请选择" style="width: 100%">
              <el-option
                v-for="dict in dictMap.WARNINGTYPECODE"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="货币币种：" prop="warnCurcd">
            <el-input v-model="formData.warnCurcd" placeholder="货币币种" />
          </el-form-item>
        </el-col>
      </el-row>

      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="当前余额正负标志：" prop="currentPmFlag">
            <el-select v-model="formData.currentPmFlag" placeholder="请选择" style="width: 100%">
              <el-option
                v-for="dict in dictMap.PLUSMINUSTYPECODE"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="当前余额：" prop="currentValue">
            <el-input v-model="formData.currentValue" placeholder="当前余额" />
          </el-form-item>
        </el-col>
      </el-row>

      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="警戒金额正负标志：" prop="warnPmFlag">
            <el-select v-model="formData.warnPmFlag" placeholder="请选择" style="width: 100%">
              <el-option
                v-for="dict in dictMap.PLUSMINUSTYPECODE"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="警戒金额：" prop="warnValue">
            <el-input v-model="formData.warnValue" placeholder="警戒金额" />
          </el-form-item>
        </el-col>
      </el-row>

      <el-row>
        <el-col :span="24">
          <el-form-item label="备注：" prop="remarks">
            <el-input type="textarea" v-model="formData.remarks" placeholder="备注" show-word-limit />
          </el-form-item>
        </el-col>
      </el-row>

      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="报文接收时间：" prop="rcvTime">
            <el-date-picker
              v-model="formData.rcvTime"
              type="datetime"
              value-format="yyyyMMddHHmmss"
              placeholder="选择时间"
              style="width: 100%"
            ></el-date-picker>
          </el-form-item>
        </el-col>
        <el-col :span="12"></el-col>
      </el-row>
    </el-form>
    <div slot="footer" class="dialog-footer"></div>
  </el-dialog>
</template>
<script>
export default {
  name: "NoticeDetails",
  components: {},
  props: {
    dictMap: {
      type: Object,
      default: () => {
        return {};
      },
    },
    formData: {
      type: Object,
      default: () => {
        return {};
      },
    },
  },
  data() {
    return {
      // 是否显示弹出层
      open: false,
    };
  },
  mounted() {},
  methods: {
    // 表单重置
    reset() {
      this.resetForm("detailsForm");
      // this.$set(this, "form", {});
    },
    closeFn() {
      this.open = false;
    },
    show() {
      this.open = true;
    },

    cancel() {
      this.open = false;
      this.reset();
    },
  },
};
</script>
<style>
.label-header-msg {
  font-weight: bold;
}

.form-card {
  margin-bottom: 10px;
}
</style>
